<?php

class TermAndCondition extends Extension {
    function getTermAndCondition(){
        $page = TermAndConditionPage::get()->find('ClassName', 'TermAndConditionPage');
        return $page ? $page : null;
    }
    
    function getTermAndConditionLink() {
        $page = $this->getTermAndCondition();
        return $page ? $page->Link() : null;
    }

}
